At this point, you have a nice little function that checks the user-specified command line parameters and returns the result in a dictionary. 现在,有了一个简洁的函数,它检查用户指定的命令行参数并在词典中返回结果。
A little trick of using a dictionary as a switch statement is used here ( although the otherwise case remains too narrow in the example). 在这里我们使用了一个技巧,就是用一个字典作为一个switch语句(尽管示例中的otherwise情况还是太狭窄了)。
There is little advantage in buying a dictionary if you can't read. 如果不识字,买字典就没有什麽用了。